package com.silence.basic_learn;
//实体类,单纯用于存储老师各项数据
public class Teacher {
    private String name;
    private double work;

    public Teacher() {
    }

    public Teacher(String name, double work) {
        this.name = name;
        this.work = work;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWork() {
        return work;
    }

    public void setWork(double work) {
        this.work = work;
    }
}
